import axios from 'axios'
/*热门电影的请求*/ 
export default function request(cityId=110100) {
  return axios({
      url:"https://m.maizuo.com/gateway?pageNum=1&pageSize=40&type=1&k=4530727&cityId="+cityId,
      headers: {
        "X-Host": "mall.film-ticket.film.list"
      },
      method: "GET"
    }).then(function (response) {
      // console.log(response.data.data.films,"这是ajax");
      return response.data.data.films
    })
    .catch(function (error) {
      console.log(error);
    });
}